//
//  MainCacheTool.h
//  MilkProject
//
//  Created by 叶子韬韬 on 2017/3/10.
//  Copyright © 2017年 叶子韬韬. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface MainCacheTool : NSObject

/**
  NSDictionary转NSData

 @param dictionary 字典
 @return data
 */
+ (NSData *)getDataWithDictionary:(NSDictionary *)dictionary;

/**
  NSData转NSDictionary

 @param data data
 @return dictionary
 */
+ (NSDictionary *)getDictionaryWithData:(NSData *)data;

/**
 NSMutableArray转NSData

 @param array NSMutableArray
 @return NSData
 */
+ (NSData *)getDataWithArray:(NSMutableArray *)array;

/**
 NSData转NSMutableArray

 @param data NSData
 @return NSMutableArray
 */
+ (NSMutableArray *)getArrayWithData:(NSData *)data;

/**
 NSDictionary转NSString

 @param dict NSDictionary
 @return NSString
 */
+ (NSString *)getStringWithDictionary:(NSDictionary *)dict;
@end
